﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DbMapping;
using System.Data;

namespace VideoCache.Server.DAL
{
    public partial class SiteTokenDAL
    {
        public static void AddRequestTimes(int id)
        {
            string sql = "UPDATE t_site_token SET RequestTimes=RequestTimes + 1 WHERE Id=?Id";

            DbAccess.ExecuteNonQuery(sql, System.Data.CommandType.Text, new IDataParameter[] { DbAccess.CreateParameter("Id", id) });
        }
    }
}
